package de.fhkl.strokeprotocol.messages;

import java.util.UUID;

/**
 * Message for video data.
 */
public class VideoMessage implements IMessage
{
	private static final long serialVersionUID = -5662796412236478023L;

	/** ID of the correspondent video */
	private UUID mVideoId;

	/** Data package of the video */
	private byte[] mVideoData;

	/**
	 * Message for video data.
	 * 
	 * @param videoId
	 * @param videoData
	 */
	public VideoMessage(UUID videoId, byte[] videoData)
	{
		mVideoId = videoId;
		mVideoData = videoData;
	}

	/**
	 * Returns the ID of the correspondent video.
	 * 
	 * @return
	 */
	public UUID getVideoId()
	{
		return mVideoId;
	}

	/**
	 * Sets the ID of the correspondent video.
	 * 
	 * @param videoId
	 */
	public void setVideoId(UUID videoId)
	{
		mVideoId = videoId;
	}

	/**
	 * Returns a data package of the video.
	 * 
	 * @return
	 */
	public byte[] getVideoData()
	{
		return mVideoData;
	}

	/**
	 * Sets a data package of the video.
	 * 
	 * @param videoData
	 */
	public void setVideoData(byte[] videoData)
	{
		mVideoData = videoData;
	}
}
